package com.stud;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ServerMain {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("com/stud/applicationContext.xml");
        context.registerShutdownHook();
        System.out.println("Server is running...");
//        Service service = new ServiceImpl();
//        Service stub = (Service) UnicastRemoteObject.exportObject(service, 30001);
//        Registry registry = LocateRegistry.createRegistry(30001);
//        registry.rebind("Service", stub);
    }
}
